/*
 * =====================================================================================
 *
 *       Filename:  ZhouSiObserver.cpp
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/04/2022 11:08:29 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */
#include "ZhouSiObserver.h"
#include <iostream>
#include "Log.h"

static const string TAG = "ZhouSiObserver";

using std::cout;
using std::endl;
using std::string;

ZhouSiObserver::ZhouSiObserver(void): IObserver("周斯") {
}

ZhouSiObserver::~ZhouSiObserver(void) {
}

void ZhouSiObserver::Update(string context) {
    LogI("%s", "周斯：我观察到韩非子活动...");
    this->Cry(context);
}

void ZhouSiObserver::Cry(string report) {
    LogI("%s, %s, %s", "周斯： 因为：", report.c_str(), ", ————所以我悲伤呀！");
}

string ZhouSiObserver::GetName() {
    return m_name;
}
